/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Thanh Nam
 */
public class ServerControllerRMI extends UnicastRemoteObject implements IServerController{

    public ServerControllerRMI() throws RemoteException {
    }

    @Override
    public boolean login(String username, String pass) throws RemoteException {
        if(username.equals("user") & pass.equals("user")){
            return true;
        }else{
            return false;
        }
    }

  
    
    
}
